/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background-color: #f5f7fa;
  color: #303133;
  height: 100vh;
  overflow: hidden;
}

#app {
  height: 100vh;
}

/* 主容器 */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部样式 */
.app-header {
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-title {
  color: #409EFF;
  font-size: 24px;
  margin: 0;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-buttons {
  margin-left: 10px;
}

/* 内容区域 */
.content-container {
  flex: 1;
  overflow: hidden;
}

/* 消息列表 */
.message-container {
  border-right: 1px solid #e6e6e6;
  background-color: #fff;
  height: 100%;
}

.message-list {
  padding: 15px;
}

.message-item {
  margin-bottom: 15px;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.message-item:hover {
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.message-item.is-expanded {
  background-color: #f0f7ff;
}

.message-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
}

.message-direction {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.message-direction::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.message-direction.send::before {
  background-color: #F56C6C;
}

.message-direction.receive::before {
  background-color: #409EFF;
}

.send {
  color: #F56C6C;
}

.receive {
  color: #409EFF;
}

.message-content {
  padding: 15px;
  background-color: #f5f7fa;
  border-top: 1px solid #ebeef5;
}

.message-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* JSON详情区域 */
.json-detail {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.json-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
}

.json-title {
  font-size: 16px;
  font-weight: bold;
  color: #409EFF;
}

.json-content {
  padding: 15px;
  flex: 1;
}

.json-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }

  .message-container {
    width: 100% !important;
    height: 50%;
  }

  .json-detail {
    height: 50%;
  }
}
.el-scrollbar{
  height: 93%;
}
/* 筛选区域样式 */
.filter-container {
  padding: 13px 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e6e6e6;
}

.filter-container .el-form {
  display: flex;
  flex-wrap: wrap;
}

.filter-container .el-form-item {
  margin-bottom: 5px;
  margin-right: 10px;
}

.filter-container .el-input,
.filter-container .el-select {
  width: 120px;
}

/* 在小屏幕上调整筛选区域 */
@media (max-width: 768px) {
  .filter-container .el-form {
    flex-direction: column;
  }

  .filter-container .el-form-item {
    margin-right: 0;
  }

  .filter-container .el-input,
  .filter-container .el-select {
    width: 100%;
  }

  .el-scrollbar {
    height: calc(100% - 150px) !important;
  }
}
/* 备注相关样式 */
.note-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #E6A23C;
  cursor: pointer;
}

.add-note-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #909399;
  cursor: pointer;
  opacity: 0.5;
}

.add-note-btn:hover {
  opacity: 1;
}

.message-header:hover .add-note-btn {
  opacity: 1;
}

.message-actions {
  display: flex;
  align-items: center;
  /*gap: 8px;*/
}

/* JSON中的备注样式 */
.json-key-with-note {
  position: relative;
  display: inline-block;
}

.json-key-note-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #E6A23C;
  margin-left: 4px;
  cursor: pointer;
}

/* 备注对话框样式 */
.el-dialog__body {
  padding: 20px;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
/* 备注标签样式 */
.note-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: pointer;
}

.note-content {
  font-size: 12px;
  background-color: #E6A23C;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 确保备注对话框在最上层 */
.el-dialog {
  z-index: 3000 !important;
}
/* JSON高亮样式 */
.json-key {
  color: #881391;
}

.json-string {
  color: #1C00CF;
}

.json-value {
  color: #1A01CC;
}

.json-note {
  color: #E6A23C;
  cursor: pointer;
  margin-left: 4px;
}

.json-add-note {
  color: #909399;
  cursor: pointer;
  opacity: 0.5;
  margin-left: 4px;
  font-weight: bold;
}

.json-add-note:hover {
  opacity: 1;
}

.json-with-notes {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}
/* 备注标签样式优化 */
.note-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.note-content {
  font-size: 12px;
  background-color: rgba(230, 162, 60, 0.2);
  color: #E6A23C;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(230, 162, 60, 0.3);
  transition: all 0.3s;
}

.note-content:hover {
  background-color: rgba(230, 162, 60, 0.3);
}

.add-note-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #909399;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.message-header:hover .add-note-btn {
  opacity: 0.7;
}

.add-note-btn:hover {
  opacity: 1;
  color: #E6A23C;
}
/* JSON备注样式优化 */
.json-note {
  color: #E6A23C;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
  font-style: italic;
  font-size: 12px;
  opacity: 0.8;
  transition: all 0.3s;
  background-color: rgba(230, 162, 60, 0.1);
  padding: 0 4px;
  border-radius: 3px;
}

.json-note:hover {
  opacity: 1;
  background-color: rgba(230, 162, 60, 0.2);
}

.json-add-note {
  color: #909399;
  cursor: pointer;
  opacity: 0;
  margin-left: 4px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
  font-size: 14px;
}

.json-row:hover .json-add-note {
  opacity: 0.5;
}

.json-add-note:hover {
  opacity: 1;
  color: #E6A23C;
}
/* 命令文本样式 */
.cmd-text {
  font-weight: 500;
  margin-right: 4px;
}

/* 消息项样式优化 */
.message-item {
  margin-bottom: 15px;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #ebeef5;
}

.message-item:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #dcdfe6;
}

.message-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
  background-color: #f5f7fa;
}
/* 备注对话框样式优化 */
.el-dialog__header {
  background-color: #f5f7fa;
  padding: 15px 20px;
  border-bottom: 1px solid #ebeef5;
}

.el-dialog__title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.el-dialog__body {
  padding: 20px;
}

.el-dialog__footer {
  padding: 10px 20px 15px;
  border-top: 1px solid #ebeef5;
  background-color: #f5f7fa;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.el-textarea__inner {
  border-color: #dcdfe6;
  transition: all 0.3s;
}

.el-textarea__inner:focus {
  border-color: #409EFF;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}
/* 备注对话框样式优化 */
.note-dialog .el-dialog {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.note-dialog .el-dialog__header {
  background-color: #f5f7fa;
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
  position: relative;
}

.note-dialog .el-dialog__title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.note-dialog .el-dialog__headerbtn {
  top: 16px;
  right: 16px;
}

.note-dialog .el-dialog__body {
  padding: 24px 20px;
}

.note-dialog .el-textarea__inner {
  border-color: #dcdfe6;
  transition: all 0.3s;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  min-height: 120px;
  border-radius: 4px;
}

.note-dialog .el-textarea__inner:focus {
  border-color: #409EFF;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.note-dialog .el-dialog__footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #ebeef5;
  background-color: #f5f7fa;
}

.note-dialog .dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.note-dialog .el-button {
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s;
}

.note-dialog .el-button--default {
  border-color: #dcdfe6;
  background-color: #fff;
}

.note-dialog .el-button--default:hover {
  background-color: #f5f7fa;
  border-color: #c6e2ff;
  color: #409EFF;
}

.note-dialog .el-button--primary {
  background-color: #409EFF;
  border-color: #409EFF;
}

.note-dialog .el-button--primary:hover {
  background-color: #66b1ff;
  border-color: #66b1ff;
}
/* 排除命令列表样式 */
.excluded-commands-list {
  max-height: 300px;
  overflow-y: auto;
}

.excluded-command-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ebeef5;
}

.excluded-command-item:last-child {
  border-bottom: none;
}
/* 下拉菜单项样式 */
.el-dropdown-menu__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 20px;
}

.dropdown-item-icon {
  margin-left: 8px;
  font-size: 14px;
  color: #409EFF;
}

/* 限制下拉菜单的最大高度，超出时显示滚动条 */
.el-dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}
/* 排除命令下拉菜单样式优化 */
.excluded-commands-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #ebeef5;
  font-weight: bold;
}

.excluded-command-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 8px;
}

.excluded-command-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 排除命令弹出框样式优化 */
.excluded-commands-popover {
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.excluded-commands-container {
  display: flex;
  flex-direction: column;
}

.excluded-commands-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
  background-color: #f5f7fa;
  border-radius: 8px 8px 0 0;
}

.excluded-commands-header span {
  font-weight: 600;
  font-size: 14px;
  /*color: #303133;*/
}

.restore-all-btn {
  font-size: 12px;
  padding: 6px 10px;
}

.excluded-commands-list {
  padding: 8px 0;
}

.excluded-command-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  transition: background-color 0.3s;
  border-bottom: 1px solid #f0f0f0;
}

.excluded-command-item:last-child {
  border-bottom: none;
}

.excluded-command-item:hover {
  background-color: #f5f7fa;
}

.excluded-command-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
  font-size: 13px;
  color: #606266;
}

.restore-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.restore-btn .el-icon {
  margin-right: 4px;
}
/* Tab页样式 */
.json-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.json-tabs .el-tabs__content {
  flex: 1;
  overflow: hidden;
}

.json-tabs .el-tab-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 调试区域样式 */
.debug-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 15px;
}

.debug-header {
  margin-bottom: 15px;
}

.debug-title {
  font-size: 16px;
  font-weight: bold;
  color: #409EFF;
}

.debug-content {
  flex: 1;
  overflow: auto;
}

.debug-content .el-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.debug-content .el-form-item:first-child {
  flex: 1;
  margin-bottom: 15px;
}

.debug-content .el-textarea {
  height: 100%;
}

.debug-content .el-textarea__inner {
  height: 100%;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}
/* 优化右侧JSON详情区域样式 */
.json-detail {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  border-left: 1px solid #e6e6e6;
}

/* Tab页样式优化 */
.json-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.json-tabs .el-tabs__header {
  margin: 0;
  background-color: #f5f7fa;
  border-bottom: 1px solid #e6e6e6;
  padding: 0 15px;
}

.json-tabs .el-tabs__nav {
  border: none;
}

.json-tabs .el-tabs__item {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #606266;
  border: none;
  transition: all 0.3s;
}

.json-tabs .el-tabs__item.is-active {
  color: #409EFF;
  font-weight: 600;
}

.json-tabs .el-tabs__active-bar {
  background-color: #409EFF;
  height: 3px;
}

.json-tabs .el-tabs__content {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.json-tabs .el-tab-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* JSON标题区域样式优化 */
.json-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
  background-color: #f9f9f9;
}

.json-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  display: flex;
  align-items: center;
}

.json-title:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #409EFF;
  margin-right: 8px;
  border-radius: 2px;
}

.json-actions {
  display: flex;
  gap: 10px;
}

/* JSON内容区域样式优化 */
.json-content {
  padding: 0;
  flex: 1;
  background-color: #fff;
}

.json-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  padding: 15px;
}

/* 调试区域样式优化 */
.debug-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.debug-header {
  padding: 15px;
  border-bottom: 1px solid #ebeef5;
  background-color: #f9f9f9;
}

.debug-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  display: flex;
  align-items: center;
}

.debug-title:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #409EFF;
  margin-right: 8px;
  border-radius: 2px;
}

.debug-content {
  flex: 1;
  overflow: auto;
  padding: 15px;
}

.debug-content .el-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.debug-content .el-form-item:first-child {
  flex: 1;
  margin-bottom: 15px;
}

.debug-content .el-textarea {
  height: 100%;
}

.debug-content .el-textarea__inner {
  height: 100%;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.6;
  background-color: #f9f9f9;
  border-color: #dcdfe6;
  transition: all 0.3s;
  padding: 12px;
}

.debug-content .el-textarea__inner:focus {
  border-color: #409EFF;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.debug-content .el-button {
  padding: 10px 20px;
}

/* JSON高亮样式优化 */
.json-key {
  color: #881391;
  font-weight: 600;
}

.json-string {
  color: #0b7500;
}

.json-value {
  color: #1A01CC;
}

.json-note {
  color: #E6A23C;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
  font-style: italic;
  font-size: 12px;
  opacity: 0.9;
  transition: all 0.3s;
  background-color: rgba(230, 162, 60, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.json-note:hover {
  opacity: 1;
  background-color: rgba(230, 162, 60, 0.2);
}

.json-add-note {
  color: #909399;
  cursor: pointer;
  opacity: 0;
  margin-left: 4px;
  font-weight: bold;
  transition: all 0.3s;
}

.json-row:hover .json-add-note {
  opacity: 0.6;
}

.json-add-note:hover {
  opacity: 1;
  color: #E6A23C;
}
/* ... 现有样式 ... */

/* JSON折叠/展开样式优化 */
.json-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  cursor: pointer;
  color: #409EFF;
  font-size: 12px;
  margin-right: 4px;
  user-select: none;
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.json-toggle-icon:hover {
  background-color: rgba(64, 158, 255, 0.1);
}

.json-toggle-icon.collapsed {
  transform: rotate(-90deg);
}

.json-toggle-row {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px 0;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.json-toggle-row:hover {
  background-color: rgba(64, 158, 255, 0.1);
}

.json-content-container {
  transition: height 0.3s ease;
  padding-left: 16px;
  border-left: 1px dashed #e0e0e0;
  margin-left: 8px;
}

.json-object-container {
  margin-left: 0;
  transition: all 0.3s ease;
}

/* 优化JSON行样式 */
.json-row {
  padding: 2px 0;
  transition: background-color 0.2s ease;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.json-row:hover {
  background-color: rgba(64, 158, 255, 0.05);
}

/* 优化JSON键值样式 */
.json-key {
  color: #881391;
  font-weight: 600;
  padding: 0 2px;
}

.json-string {
  color: #0b7500;
  padding: 0 2px;
}

.json-value {
  color: #1A01CC;
  padding: 0 2px;
}

.json-note {
  color: #E6A23C;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
  font-style: italic;
  font-size: 12px;
  opacity: 0.9;
  transition: all 0.3s;
  background-color: rgba(230, 162, 60, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.json-note:hover {
  opacity: 1;
  background-color: rgba(230, 162, 60, 0.2);
}

.json-add-note {
  color: #909399;
  cursor: pointer;
  opacity: 0;
  margin-left: 4px;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 14px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.json-row:hover .json-add-note {
  opacity: 0.6;
}

.json-add-note:hover {
  opacity: 1;
  color: #E6A23C;
  background-color: rgba(230, 162, 60, 0.1);
}

/* 优化JSON内容区域 */
.json-content {
  padding: 0;
  flex: 1;
  background-color: #fff;
  overflow: auto;
}

.json-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  padding: 15px;
}

/* 脚本管理相关样式 */
.script-manager-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.script-list-header {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}


.script-dialog .el-dialog__body {
  padding-top: 10px;
}

/* 表格样式优化 */
.el-table .cell {
  word-break: break-word;
}



.script-editor-container {
  height: 100%;
  min-height: 500px;
}

.script-dialog .el-dialog__body {
  padding-top: 10px;
}



.script-dialog .el-dialog__body {
  padding-top: 10px;
}

/* Monaco 编辑器容器 */
.monaco-editor-container {
  height: 500px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
}

/* 脚本编辑 Tab 样式 */
.script-edit-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.script-edit-tabs .el-tabs__content {
  flex: 1;
  overflow: hidden;
  padding: 15px 0;
}

.script-edit-tabs .el-tab-pane {
  height: 100%;
}

/* 脚本帮助样式 */
.script-help-container {
  padding: 0 15px;
  height: 500px;
  overflow-y: auto;
}

.script-help-card {
  margin-bottom: 20px;
}

.script-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.script-help-content {
  line-height: 1.6;
  color: #606266;
}

.script-help-content h3 {
  margin: 16px 0 8px;
  color: #303133;
  font-size: 16px;
}

.script-help-content p {
  margin: 8px 0;
}

.script-help-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.script-help-content code {
  background-color: #f5f7fa;
  border-radius: 3px;
  padding: 2px 4px;
  color: #c7254e;
  font-family: Consolas, Monaco, monospace;
}

.script-example-code {
  background-color: #f5f7fa;
  border-radius: 4px;
  padding: 15px;
  margin: 10px 0;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  overflow: auto;
  border: 1px solid #ebeef5;
}

/* 表格样式优化 */
.el-table .cell {
  word-break: break-word;
}

/* 脚本日志窗口样式 */
.script-log-window {
  position: fixed;
  width: 500px;
  min-height: 40px;
  max-height: 400px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dcdfe6;
}

.script-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f7fa;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid #e4e7ed;
}

.script-log-title {
  font-weight: bold;
  font-size: 14px;
  color: #303133;
}

.script-log-actions {
  display: flex;
  gap: 4px;
}

.script-log-content {
  flex: 1;
  height: 300px;
  overflow: hidden;
}

.script-log-entries {
  padding: 8px 12px;
}

.script-log-entry {
  margin-bottom: 4px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.script-log-time {
  color: #909399;
  margin-right: 6px;
}

.script-log-script {
  color: #409eff;
  margin-right: 6px;
  font-weight: bold;
}

.script-log-message {
  color: #606266;
}

/* 不同级别日志的颜色 */
.log-level-info .script-log-message {
  color: #606266;
}

.log-level-success .script-log-message {
  color: #67c23a;
}

.log-level-warning .script-log-message {
  color: #e6a23c;
}

.log-level-error .script-log-message {
  color: #f56c6c;
}

/* 最小化时的样式 */
.script-log-window.minimized .script-log-content {
  display: none;
}

/* 空日志提示样式 */
.script-log-entries .el-empty {
  padding: 20px 0;
}

/* 确保日志窗口在其他元素之上 */
.script-log-window {
  z-index: 2500;
}
/* 脚本日志窗口样式 */
.script-log-window {
  position: fixed;
  width: 500px;
  min-height: 40px;
  max-height: 400px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dcdfe6;
}

.script-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f7fa;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid #e4e7ed;
  flex-shrink: 0; /* 防止头部被压缩 */
}

.script-log-title {
  font-weight: bold;
  font-size: 14px;
  color: #303133;
}

.script-log-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.script-log-content {
  flex: 1;
  height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.script-log-entries {
  padding: 8px 12px;
}

/* 确保滚动条正常工作 */
.el-scrollbar {
  flex: 1;
  overflow: auto;
}

.el-scrollbar__wrap {
  overflow-x: hidden;
}
/* 脚本名称编辑样式 */
.script-name-container {
  display: flex;
  align-items: center;
}

.script-name-display {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
}

.script-name-display:hover {
  background-color: #f5f7fa;
}

.edit-name-icon {
  margin-left: 5px;
  font-size: 14px;
  color: #909399;
  opacity: 0;
  transition: opacity 0.2s;
}

.script-name-display:hover .edit-name-icon {
  opacity: 1;
}